package day07.object;

/**
 * 测试类
 * @since 09:35
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Test {
    public static void main(String[] args) {
        // 测试创建Student类的次数
        for (int i = 0; i < 11; i++) {
            Student s = Student.getInstance("张三", 1, 100, "小学一年级");
            if (s != null) {
                System.out.println(i + 1);
                s.printStu();
            } else {
                System.out.println(s);
            }

        }
    }
}
